-- GENERATED SPELL FOR [Stonescythe Alpha] --


function spell0_16929(pUnit, Event) --@Desperate Defense,n/a--
pUnit:FullCastSpellOnTarget(33896,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16929', 6286, 1)
end

function spell1_16929(pUnit, Event) --@Tear Armor,n/a--
pUnit:FullCastSpellOnTarget(33911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16929', 30251, 1)
end

function Sorts_16929(pUnit, Event)
local choix_sorts_16929 = math.random(0, 1)
if choix_sorts_16929 == 0 then
pUnit:RegisterEvent('spell0_16929', 1, 1)
end
if choix_sorts_16929 == 1 then
pUnit:RegisterEvent('spell1_16929', 1, 1)
end
end

function mob16929_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16929', math.random(1500, 3000), 1)
end

function mob16929_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16929_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16929_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16929, 1, 'mob16929_Action')
RegisterUnitEvent(16929, 2, 'mob16929_Leave')
RegisterUnitEvent(16929, 3, 'mob16929_Kill')
RegisterUnitEvent(16929, 4, 'mob16929_Die')
